package com.tocea.formation.tpLibraryEjb.DTO;

import java.io.Serializable;
import java.util.List;

public class AuthorDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String firstname;
	private String lastname;
	private Integer age;
	private List<Integer> idBooks;
	
	public AuthorDTO(){}
	
	public AuthorDTO(String _fn, String _ln){
		this.firstname = _fn;
		this.lastname = _ln;
		this.age = 0;
	}
	
	public AuthorDTO(Integer _id, String _fn, String _ln, Integer _age){
		this.firstname = _fn;
		this.lastname = _ln;
		this.id = _id;
		this.age = _age;
	}
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getFirstname() {
		return firstname;
	}
	
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	
	public String getLastname() {
		return lastname;
	}
	
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	
	public List<Integer> getIdBooks() {
		return idBooks;
	}
	
	public void setIdBooks(List<Integer> idBooks) {
		this.idBooks = idBooks;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}
